package lab02.test14;

/**
 * Created by JAVA on 2017/10/21.
 */
public class Test14 {
    public static void main(String[] args) {
        Circle c1 = new Circle();
        c1.radius = 5;
        System.out.println("圆半径是：" + c1.radius);
        System.out.println("圆周率是：" + c1.PI);
        System.out.println("圆面积是：" + c1.getArea(c1.radius, c1.PI));

        Rectangle rectangle = new Rectangle();
        rectangle.a = 2;
        rectangle.b = 4;
        System.out.println("矩形边为：" + rectangle.a);
        System.out.println("矩形边为：" + rectangle.b);
        System.out.println("矩形面积为：" + rectangle.getArea(rectangle.a, rectangle.b));
    }
}
